package net.danielseidl.ludumdare.ld48;

import net.danielseidl.ludumdare.ld48.character.Player;
import net.danielseidl.ludumdare.ld48.level.Level;
import net.danielseidl.ludumdare.ld48.tile.TileLoader;

/**
 * Used for setting up the game.
 *
 * @author    Daniel Seidl - info@daniel-seidl.net
 */
public class GameSetup
	{
	/**
	 * Starts the game by creating a new game instance.
	 * @param args Not used for this program.
	 */
	public static void main(String[] args)
		{		
		// Create tile loader instance.
		TileLoader loader = new TileLoader();
		
		// Create level instance.
		Level level = new Level(loader, 1, 7, 7);
		
		// Create player instance.
		Player player = new Player(level);
		
		// Start the game!
		Game game = new Game(player, level, loader);
		game.start();
		
		// Give the game to the player instance.
		player.setGameInstance(game);
		}
	}